import request from '@/utils/request'

//时间同步接口
export function timeSync(data) {
  return request({
    url: '/timeSync',
    method: 'post',
    data: data
  })
}

//设置网络信息接口
export function setNetConfig(data) {
  return request({
    url: '/api/system/netConfig',
    method: 'post',
    data: data
  })
}

// 获取网络地址信息接口
export function getNetConfig(query) {
  return request({
    url: '/api/system/netConfig',
    method: 'get',
    params: query
  })
}


// 获取服务端口接口
export function getServerPorts(query) {
  return request({
    url: '/getServerPorts',
    method: 'get',
    params: query
  })
}

//设置服务端口接口
export function setServerPorts(data) {
  return request({
    url: '/setServerPorts',
    method: 'post',
    data: data
  })
}
